package org.mpremote.android.framework.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Created by IntelliJ IDEA.
 * User: Gilad
 * Date: 04/10/2010
 * Time: 00:34:08
 */
@XStreamAlias("Album")
public class Album {

    @XStreamAlias("name")
    private String name;
    @XStreamAlias("year")
    private String year;
    @XStreamAlias("image")
    private String imageUrl;
    @XStreamAlias("href")
    private String tracksUrl;
    @XStreamAlias("add")
    private String addToPlaylistUrl;

    public Album(String name, String year, String imageUrl, String tracksUrl, String addToPlaylistUrl) {
        this.name = name;
        this.year = year;
        this.imageUrl = imageUrl;
        this.tracksUrl = tracksUrl;
        this.addToPlaylistUrl = addToPlaylistUrl;
    }

    public Album() {
    }

    public String getName() {
        if (name == null) {
            name = "";
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getYear() {
        if (year == null) {
            year = "";
        }
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getImageUrl() {
        if (imageUrl == null) {
            imageUrl = "";
        }
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTracksUrl() {
        if (tracksUrl == null) {
            tracksUrl = "";
        }
        return tracksUrl;
    }

    public void setTracksUrl(String tracksUrl) {
        this.tracksUrl = tracksUrl;
    }

    public String getAddToPlaylistUrl() {
        if (addToPlaylistUrl == null) {
            addToPlaylistUrl = "";
        }
        return addToPlaylistUrl;
    }

    public void setAddToPlaylistUrl(String addToPlaylistUrl) {
        this.addToPlaylistUrl = addToPlaylistUrl;
    }
}
